package cn.fdaxy.shop.common.base;

import lombok.Data;

/**
 * @ClassName BaseResponse
 * @Description TODO 统一返回接口
 * @Author liaofd
 * @Date 2019/7/24 14:36
 * @Version 1.0
 */
@Data
public class BaseResponse<T> {
    /**
     * 返回码
     */
    private Integer code;
    /**
     * 消息
     */
    private String msg;
    /**
     * 返回
     */
    private T data;

    public BaseResponse() {
    }

    public BaseResponse(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
